package com.demo;

import com.demo.utils.LogUtil;

public class T_ThreadDemo2 {
    public static void main(String[] args) {

        Thread t = new Thread(new Runnable() {
            @Override
            public void run() {
                for (int i = 0; i < 100000; i++) {
                    try {
                        Thread.sleep(100);
                    } catch (InterruptedException e) {
                        e.printStackTrace();
                    }
                    LogUtil.info("{}", i);
                }
            }
        });
        t.start();
    }
}

